package com.sc.pb_user.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 管理员操作日志表
 * </p>
 *
 * @author PBObserver
 * @since 2025-09-19 05:02:16
 */
@Getter
@Setter
@TableName("pb_admin_log")
public class PbAdminLog {

    /**
     * 主键ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 逻辑外键，关联pb_admin.id
     */
    @TableField("admin_id")
    private Long adminId;

    /**
     * 操作内容
     */
    @TableField("operation")
    private String operation;

    /**
     * 操作接口URL
     */
    @TableField("operation_url")
    private String operationUrl;

    /**
     * 操作IP
     */
    @TableField("ip")
    private String ip;

    /**
     * 操作时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
}
